<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="target-densitydpi=640,width=1280,user-scalable=yes">
    <base href="<?php echo $system['siteRoot'];?>" />
    <title>报备进度查询 - 我的账户</title>
    <?php import_tpl("fragment/icon.php"); ?>
    <link rel="stylesheet" href="plugin/reset.css"/>
    <link rel="stylesheet" href="plugin/awesome4/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="style/common.css"/>
    <link rel="stylesheet" href="style/return-manage.css"/>
    
    <script src="plugin/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">
    (function(){
        $(function(){
            //console.log( $('.slide .commodity'))
            $('.slide .commodity').addClass('menu-normal').removeClass('menu-label')    
        })
    })()
    </script>
    <script type="text/javascript">_root='<?php echo $system['siteRoot'];?>'</script>
    <script src="script/api.js"></script>
</head>
<body>
<div id="container" class="index">
    <?php import_part("custom.home","userBar"); ?>
    <?php import_part("custom.home","header"); ?>
    <?php import_tpl("fragment/nav.php"); ?>
    <div class="main-container">
        <div class="left">
            <?php import_tpl("fragment/mySlide.php"); ?>
            <div class="qr-code-box">
                <img src="images/weixin.png" alt="扫描二维码关注" title="关注我们的微信"/>
                <div>
                    <p class="weixin">扫描二维码</p>
                    <p class="concern">关注我们的微信</p>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="goods-return">
                <div class="goods-return-title">
                    <p>报备进度查询</p>
                </div>
                <table class="commodity-detail-table">
                    <tr class="commodity-detail">
                        <td class="intention-goods">意向商品</td>
                        <td class="buyer-name">购买人姓名</td>
                        <td class="buyer-phone">购买人电话</td>
                        <td class="commodity-condition">进度</td>
                        <td class="file-time">报备时间</td>
                        <td class="lift-time">解禁时间</td>
                    </tr>
                </table>
                <table class="commodity-table">
                    <?php foreach ($r['list'] as $k=>$v) {?>
                        <tr class="commodity-detail <?=$k%2!=0?' even-line':'' ?>">
                            <td class="intention-goods"><?=$v['goods_name']?></td>
                            <td class="buyer-name"><?=$v['name']?></td>
                            <td class="buyer-phone"><?=$v['tel']?></td>
                            <td class="commodity-condition"><?=$r['commodityState'][$v['state']]?></td>
                            <td class="file-time"><?=date('Y-m-d', strtotime($v['create_time']));?></td>
                            <td class="lift-time"><?=date('Y-m-d', strtotime($v['create_time'])+15*24*60*60);?></td>
                        </tr>
                    <?php }?>
                </table>
            </div>
            <?php if($r['page'] instanceof Page && !$r['pageEmpty']){
                $page=$r['page'];?>
                <div class="turn-page">
                    <?php if($page->ifPrev()) { ?>
                        <a href="<?=$page->getPageUrl($page->getPrev());?>"><i class="fa fa-chevron-left"></i>上一页</a>
                    <?php }?>
                    <?php foreach($page->getPageArray() as $i){ ?>
                        <a href="<?=$page->getPageUrl($i);?>"><?php echo $i;?></a>
                    <?php } ?>
                    <?php if($page->ifNext()) { ?>
                        <a href="<?=$page->getPageUrl($page->getNext());?>">下一页<i class="fa fa-chevron-right"></i></a>
                    <?php }?>
                </div>
            <?php } ?>
        </div>
    </div>
    <?php import_tpl("fragment/footer.php"); ?>
</div>
</body>
</html>